home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2000 July / macformat-092.iso / MacFormat 92 CD / Shareware Plus / Utilities / FolderSynchronizer 1.8.9 / PlugIn / SR / 00035_ScrBtnLong.ls < prev    next >
Encoding:
Text File  |  2000-03-23  |  726 b   |  28 lines

  1. on beginSprite me
  2.   global gShortFlag, gLogPathList
  3.   set mySprite to the spriteNum of me
  4.   if count(gLogPathList) = 0 then
  5.     set the member of sprite mySprite to "BtnOfLong"
  6.   else
  7.     if gShortFlag = 0 then
  8.       set the member of sprite mySprite to "BtnDwLong"
  9.     else
  10.       set the member of sprite mySprite to "BtnUpLong"
  11.     end if
  12.   end if
  13. end
  14.  
  15. on mouseDown me
  16.   global gShortFlag, gLogPathList
  17.   set mySprite to the spriteNum of me
  18.   if (count(gLogPathList) > 0) and (gShortFlag = 1) then
  19.     set gShortFlag to 0
  20.     set the member of sprite mySprite to "BtnDwLong"
  21.     set the member of sprite (mySprite - 1) to "BtnUpShort"
  22.     updateStage()
  23.     ReadLogText()
  24.     ImpostaHThumb()
  25.     DrawVControls()
  26.   end if
  27. end
  28.